<!DOCTYPE html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0,user-scalable=no">
	<link rel="stylesheet" href="__PUBLIC__/css/editor.css"> 
	<link rel="stylesheet" href="__PUBLIC__/css/editor_index.css">
	<script src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
	<script src="__PUBLIC__/js/layer.m/layer.m.js"></script>
	<iframe id="__WeixinJSBridgeIframe_SetResult" style="display: none;"></iframe>
    <iframe id="__WeixinJSBridgeIframe" style="display: none;"></iframe>
</head>
<style>
.center5585{
	background-color:#ffffff
}
.rich_media_area_primary{
	padding:0px
}
.tedit_body{
	padding:0 15px;
	background-color:#fff;
}
.edit_search_content .edit_search_content_input{
	height:72px;
}
.edit_search_content .edit_search_content_input input{
	width:100%;
}
.wx_preview_share .wx_preview_share_view_friend_title{
	height:13px;
}
.wx_preview_share .wx_preview_share_view_circle_content{
	background:#fff;
}
#product p{
	height:19px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
</style>
<html>
<body style="position:relative;margin:0 auto;background-color:#fff;">

	<?php $detail['share_img'] = !empty($detail['share_img']) ?  $detail['share_img'] : '';?>
	
	<!-- onclick="" 不能删除，他是兼容苹果手机点击触发不了编辑器问题 -->
	<div id="middle_content"  onclick="" class="tedit_body" >
		<notempty name="showtitle">
			<?php /*站内文章特殊，需要单独输出标题*/?>
			<div style="text-align:center;font-size:25px;"><{$detail['title']}></div>
		</notempty>

		<notempty name="our_article">
			<?php //重置css?>
			<style>
				.tedit_body{
					padding:0 0px;
				}
			</style>
			<?php /*自建文章*/?>
			<div style="padding:0 10px">
			<!-- <div >&nbsp;</div>
			<div >&nbsp;</div>
			<div >&nbsp;</div>
			<div >&nbsp;</div>
			<div >&nbsp;</div> -->
			<div >&nbsp;</div>
			<div style="text-align: center;">
				<div style="">提示：点击这里开始编辑</div>
			</div>
			<!-- <div >&nbsp;</div>
			<div >&nbsp;</div>
			<div >&nbsp;</div>
			<div >&nbsp;</div>
			<div >&nbsp;</div>
			<div >&nbsp;</div> -->
			</div>
		</notempty>
		<notempty name="showtitle">
			<?php /*站内文章特殊，需要单独输出标题*/?>
			<div><{$contents}></div>
			<else/>
			<{$contents}>
		</notempty>
		

	</div>
	
	<!-- 文章编辑 -->
	<div class="tedit_header">
		文章编辑
		<a href="javascript:void(0)" onclick="history.go(-1)" class="back">
			<img src="__PUBLIC__/img/back.png">
			<span class="back_cs">
				返回
			</span>
		</a>
		<a href="javascript:void(0)" class="head_alter article_save">
			保存
		</a>
	</div>
	<!-- 文章编辑 -->


	<!-- 显示分享样式 -->
	<div class="wx_preview_box" style="display: none">
		<div class="wx_preview_share">
			<div class="wx_preview_share_top">
				<div class="wx_preview_share_cencel"><span>×</span></div>
			</div>
			<div class="wx_preview_share_tisp_title">您当前分享文章图标效果如下</div>
			<div class="wx_preview_share_tisp_title">分享到朋友圈：</div>
			<div class="wx_preview_share_view">
				<div class="wx_preview_share_view_circle_content">
					<div class="wx_preview_share_view_circle_content_img">
						<img src="<{$detail['share_img']}>">
					</div>
					<div class="wx_preview_share_view_circle_content_text">
						<{$detail['title']}>
					</div>
					<div class="both"></div>
				</div>
			</div>
			<div class="wx_preview_share_tisp_title">发送给朋友：</div>
			<div class="wx_preview_share_view">
				<div class="wx_preview_share_view_friend">
					<div class="wx_preview_share_view_friend_title"><{$detail['title']}></div>
					<div class="wx_preview_share_view_friend_content">
						<div class="wx_preview_share_view_friend_img">
							<img src="<{$detail['share_img']}>">
						</div>
						<div class="wx_preview_share_view_friend_desc">
							<{$detail['share_summary']}>
						</div>
						<div class="both"></div>
					</div>
				</div>
			</div>
			<div class="foonter_btn">
				<div class="edit_search_content_btn">修改分享</div>
				<div class="success_submit_btn" onclick="success_post()">确认保存</div>
			</div>
		</div>
	</div>
	<!-- 显示分享样式 -->

	<!-- 设置分享标题描述 -->
	<div class="edit_search_content" style="display: none;" >
		<div class="edit_search_content_input">
			<label>分享标题 :
				<input type="text" id="new_title" placeholder='请输入您的分享标题' value="<{$detail['title']}>">
			</label> 
		</div>

		<div class="edit_search_content_input">
			<label>分享简介 :
				<input type="text" id="share_introduction" name="share_introduction" placeholder='请输入您的分享简介' value="<{$detail['share_summary']}>">
			</label> 
		</div>

		<div class="edit_search_content_img" id="select_dom">
			<div>
				<img id="show_img"  src="<{$detail['share_img']}>">
			</div>
			<div class="edit_search_content_img_uploadbtn">
				<a href="javascript:void:;" class="" >上传图片</a>
			</div>
			<div class="both"></div>
			<input type="hidden" id ="upload" name="share_img" value="<{$detail['share_img']}>">
			<{:A('Upload')->upload_tool('select_dom','show_img','true')}>
		</div>

		<div class="edit_search_content_img_success_btn">
		<a href="javascript:void:;"  onclick="success_post()"  >确认保存</a>
		</div>
	</div>
	<!-- 设置分享标题描述 -->
	<!-- 提交参数 -->
	<input type="hidden" id="aid" value="<{$detail['id']}>">
	<input type="hidden" id="seo_depict" value="<{$detail['seo_depict']}>">
	<input type="hidden" id="seo_key" value="<{$detail['seo_key']}>">
	<input type="hidden" id="select_item">
	<input type="hidden" id="select_item_b">
	<input type="hidden" id="form_music_id" name="musc"  value="<{$detail['music_id']}>">
	<input type="hidden" id="form_music" name="music" value="">	
	<input type="hidden" id="article_type" name="article_type" value="<{$article_type}>">
	<script>
		//图片前缀
		var images_url = "<{:C('images_url')}>";
		//判断文章类型处理不同脚本
		var article_source = "<{$article_source}>";
		//保存文章外链图片
		var file_picture = "<{:U('Home/Article/file_picture')}>";
		//保存提交文章内容url
		var article_submit = "<{:U('Home/Article/article_submit')}>";
		//保存完成之后跳转url
		var article_submit_success_jump_url = "<{$url}>";
		//区分任务文章与站内文章
		var article_type_task = "<{$article_type_task}>";
		//加载广告图片列表
		var ad_list_ajax = "<{:U('Home/Template/ad_list_ajax')}>";
		//加载广告图片详情
		var ad_info_ajax_url = "<{:U('Home/Template/ad_info_ajax')}>";
		//加载音乐列表
		var music_list_ajax = "<{:U('Home/Template/music_list_ajax')}>";
		//插入视频url
		var tvideo_url = "<{:U('Home/Article/display_iframe')}>";
		//上传图片
		var upload_picture_url = "<{:U('Home/Index/upload_picture')}>";
		//上传图片大小
		var upload_size = <{:C('upload_size')+0}>;
		//快速链接
		var quick_url   = "<{:U('Quicklink/ajax_article_quick_link_list')}>";
		//素材时评
		var material_video = "<{:U('Template/ajax_material_video')}>";
		//产品分类
		var prodcut_category = "<{:U('Template/ajax_prodcut_category')}>";
		//产品列表
		var prodcut_list = "<{:U('Template/ajax_product_list')}>";
		//插入产品
		var product_info_ajax_url = "<{:U('Home/Template/product_info_ajax')}>";
		//搜索产品
		var search_product = "<{:U('Home/Template/search_product')}>";
		//分类
		var ajax_category_list = "<{:U('Videoclassify/ajax_video_classify')}>";
		
	</script>

	<script src="__PUBLIC__/js/common.js"></script>
	<script src="__PUBLIC__/js/edit_article.js"></script>
	<script src="__PUBLIC__/js/xxUploadImgTemplate.js"></script>
	<script src="__PUBLIC__/js/editor.js"></script>
	<include file="Article:article_edit_controller"/>
</body>
</html>



